package com.pms.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.pms.dao.HdBatchMapper;
import com.pms.domain.HdBatch;
import com.pms.service.HdBatchService;

@Service
public class HdBatchServiceImpl implements HdBatchService {
	
	@Autowired
	HdBatchMapper hdBatchMapper;

	@Override
	public void insertHdBatch(HdBatch hdBatch) {
		hdBatchMapper.insertHdBatch(hdBatch);
	}

	@Override
	public HdBatch selectByBatchId(Integer batchid) {
		return hdBatchMapper.selectByBatchId(batchid);
	}

	@Override
	public void updateHdBatch(HdBatch hdBatch) {
		hdBatchMapper.updateHdBatch(hdBatch);
	}

	@Override
	public List<HdBatch> getAllHdBatch() {
		return hdBatchMapper.getAllHdBatch();
	}

	@Override
	public void deleteHdBatch(Integer batchid) {
		hdBatchMapper.deleteHdBatch(batchid);
	}

}
